#include "fepch.h"
#include "Object.h"


namespace Fysics
{
	Object::Object(glm::vec3 position) : m_Position(position)
	{
	}

	void Object::SetPos(glm::vec3 newPos)
	{
		this->m_Position = newPos;
	}

	void Object::SetPos(float x, float y, float z)
	{
		m_Position.x = x;
		m_Position.y = y;
		m_Position.z = z;
	}

	void Object::SetX(float x)
	{
		m_Position.x = x;
	}

	void Object::SetY(float y)
	{
		m_Position.y = y;
	}

	void Object::SetZ(float z)
	{
		m_Position.z = z;
	}

	glm::mat4 Object::GetModelMatrix() const
	{
		glm::mat4 transform = glm::translate(glm::mat4(1.0f), m_Position);
		return transform;
	}
}